import request from '@/utils/request'

// 查询银行卡BIN列表
export function listBinCard(query) {
  return request({
    url: '/system/binCard/list',
    method: 'get',
    params: query
  })
}

// 查询银行卡BIN详细
export function getBinCard(id) {
  return request({
    url: '/system/binCard/' + id,
    method: 'get'
  })
}

// 新增银行卡BIN
export function addBinCard(data) {
  return request({
    url: '/system/binCard',
    method: 'post',
    data: data
  })
}

// 修改银行卡BIN
export function updateBinCard(data) {
  return request({
    url: '/system/binCard',
    method: 'put',
    data: data
  })
}

// 删除银行卡BIN
export function delBinCard(id) {
  return request({
    url: '/system/binCard/' + id,
    method: 'delete'
  })
}
